#ifndef SCORESCENE_H
#define SCORESCENE_H

#include "Button.h"
#include "Scene.h"
#include "vector"

class ScoreScene : public Scene{
public:
	ScoreScene(IDirect3DTexture9* background);
	~ScoreScene();

	SceneRS update(float dt);

	void draw(ID3DXSprite* sprite);
	void drawBackground(ID3DXSprite* sprite);
	void drawTransparentGround(ID3DXSprite* sprite);
	bool checkFile (const std::string& name);

	void onLostDevice();
	void onResetDevice();

	void loadScore();
	void loadTexture();
	void releaseTexture();
private:
	IDirect3DTexture9* mBackTex;
	IDirect3DTexture9* mTex;
	D3DXVECTOR3 mBackgroundPos;
	D3DXVECTOR3 mTransparentGroundPos;
	D3DXVECTOR3 mBackgroundCenter;
	LONG mWidth;
	LONG mHeight;

	std::vector<std::string> mScoreList;
	ID3DXFont* mFont;
	float count;
};

#endif